﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using TMHuy.config;

namespace TMHuy
{
    public class BuildingComparer : IComparer
    {

        int IComparer.Compare(Object x, Object y)
        {
            Building a = (Building)x;
            Building b = (Building)y;
            if (a.level == b.level) return ((new CaseInsensitiveComparer()).Compare(a.buildLink, b.buildLink));
            return ((new CaseInsensitiveComparer()).Compare(a.level, b.level));
        }

    }
}
